package cn.hjm.hrm.domain;

import com.baomidou.mybatisplus.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sharkbinbin
 * @since 2022-01-30
 */
public class Productstore extends Model<Productstore> {

    private static final long serialVersionUID = 1L;

    /**
     * 库存id
     */
    private Long id;
    /**
     * 商品的id 外键关联
     */
    private Long productId;
    /**
     * 库存多少
     */
    private Long number;

    public Productstore(){

    }
    public Productstore(Long id, Long productId, Long number) {
        this.id = id;
        this.productId = productId;
        this.number = number;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Productstore{" +
        ", id=" + id +
        ", productId=" + productId +
        ", number=" + number +
        "}";
    }
}
